package com.rhtchr.angelbaby.knowledge;

import java.util.List;

import com.rhtchr.angelbaby.domain.VArticle;
import com.rhtchr.util.GenericDaoHibernateImpl;

public class ArticleDao extends GenericDaoHibernateImpl<VArticle, Integer> {

	public ArticleDao() {
		super(VArticle.class);
	}

	@SuppressWarnings("unchecked")
	public List<VArticle> find(String hql, int topicId) {
		return (List<VArticle>) getHibernateTemplate().find(hql, topicId);
	}
}
